package com.qf.service.impl;

import com.codingapi.txlcn.tc.annotation.LcnTransaction;
import com.qf.mapper.UserMapper;
import com.qf.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author YDW
 * projectName:project2202_4
 * time:2022/6/19 15:14
 * description:
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper userMapper;


    @Override
    @Transactional
    @LcnTransaction
    public void transfer() {
        System.out.println(1/0);
        //减钱
        userMapper.update();


    }
}
